//tbClass.entity.ts
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity('tb_class')
export class  tbClassEntity{

  @Column({name:'id'})
  id:number

  @Column({name:'name'})
  name:string

  @Column({name:'parent_id'})
  parentId:string

  @Column({name:'type_info'})
  typeInfo:string





    constructor(_data: any) {

  this.id = _data?.id;

  this.name = _data?.name;

  this.parentId = _data?.parentId;

  this.typeInfo = _data?.typeInfo;


}

}

